package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.po.v1.Event;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EventMapper extends K2Mapper<Event> {
    List<Event> selectList1 (Event cond);

    List<Event> selectTypeCount (Event cond);

    List<Event> selectFaultCount (Event cond);


    @Select("SELECT DISTINCT type FROM event")
    List<String> selectTypes ();

}
